package test1225;

public class Test11 {
    public static void main(String[] args) {
        // 返回2个数组的交集
        int[] arr = {1,2,3,4,5};
        int[] brr = {3,4,5,6,7};
        int[] crr = m11(arr, brr);
        for (int c:crr) {
            System.out.println(c);
        }
    }
    public static int[] m11(int[] arr, int[] brr) {
        int[] a = new int[arr.length];
        for (int i = 0; i < a.length; i++) {
            a[i] = arr[i];
        }
        int[] b = new int[brr.length];
        for (int i = 0; i < b.length; i++) {
            b[i] = brr[i];
        }
        int[] c = new int[a.length + b.length];

        return c;
    }

}
